Documentation > CMS Template API Library > Util > MakeList(String[])

MakeList

Convenience method for making a list of strings. You may pass an array of strings or a variable length list of strings like List list = Util.MakeList("Apple","orange", "Banana");

public List<String> MakeList(String[])


Returns

List of Strings

Parameters

NameDescriptionType
items The items to turn into a list of ints. System.String[]

Code Example

C#

Sample:

            
             List<string> list = Util.MakeList("Apple","orange", "Banana");
            
            

Connect with Crownpeak